﻿<local:DocumentBase x:Class="WPFExcelReport.FLTFGBMOV"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:IntexReport.DataSource"
                    xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core"
                    xmlns:wep="clr-namespace:WPFExcelReport"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"  
                    FontSize="14"
                    Background="WhiteSmoke"
                    HorizontalAlignment="Stretch"  Margin="0,0,0,0"  VerticalAlignment="Stretch" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="184">
    <local:DocumentBase.Resources>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <db:SetData x:Key="dataSource" />
        <CollectionViewSource  x:Key="vwCN_GMBALANCE" Source="{Binding Path=CN_GMBALANCE,Source={StaticResource dataSource}}">
        </CollectionViewSource>
    </local:DocumentBase.Resources>
    <Grid DataContext="" Name="main"  HorizontalAlignment="Stretch"  Margin="10,10,0,0"  VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="600" />
            <ColumnDefinition Width="400" />
        </Grid.ColumnDefinitions>
        <WrapPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Name="zoneCommand" Height="34" Margin="0,0,0,6">
            <Button    Height="40" Margin="0,0,0,0"  Name="btnQuery" Width="40" Click="btnQuery_Click" >
                <Button.Background>
                    <ImageBrush ImageSource="/IntexReportClient;component/Images/Search.png" />
                </Button.Background>
            </Button>
            <Button  Margin="10,0,0,0"  Height="40" Name="btnPrint" Width="40" Click="btnPrint_Click">
                <Button.Background>
                    <ImageBrush ImageSource="/IntexReportClient;component/Images/Print.png" />
                </Button.Background>
            </Button>
            <WrapPanel Margin="20,0,0,0">
                <TextBlock>仓库:</TextBlock>
                <TextBox Name="txtlo" Text="FI"></TextBox>
                <TextBlock>库区:</TextBlock>
                <TextBox Name="txtlb" Text=""></TextBox>
                <TextBlock>生产单类型:</TextBlock>
                <TextBox Name="txtabtype" Text=""></TextBox>
            </WrapPanel>
        </WrapPanel>
        <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">            
            <WrapPanel >
                <Label Content="开始"    Width="40" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtBYEAR" Width="50" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="Pink" FontSize="18" Text="2011" Foreground="#FF141111" />
                <Label Content="年"    Width="20" Margin="10,0,0,0" HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtBMONTH" Width="30" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="Beige" Text="10" FontSize="18" Height="30" Foreground="#FF141111" />
                <Label Content="月"    Width="20" Margin="10,0,0,0" HorizontalAlignment="Left"    FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtBDAY" Width="30" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="YellowGreen" FontSize="18" Text="01" Height="30" Foreground="#FF141111" />
                <Label Content="日"    Width="20" Margin="10,0,0,0" HorizontalAlignment="Left"    FontSize="18" VerticalAlignment="Center" />
                <TextBlock Margin="10,5,0,0">例如期初4月1日[自凌晨起]，期末为5月1日[自凌晨止]</TextBlock>
            </WrapPanel>
            <WrapPanel>
                <Label Content="结束"    Width="40" Margin="10,0,0,0"  HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtEYEAR" Width="50" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="Pink" FontSize="18" Text="2011" Foreground="#FF141111" />
                <Label Content="年"    Width="20" Margin="10,0,0,0" HorizontalAlignment="Left"   FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtEMONTH" Width="30" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="Beige" Text="08" FontSize="18" Height="30" Foreground="#FF141111" />
                <Label Content="月"    Width="20" Margin="10,0,0,0" HorizontalAlignment="Left"    FontSize="18" VerticalAlignment="Center" Foreground="#FF141111" />
                <TextBox Name="txtEDAY" Width="30" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="YellowGreen" FontSize="18" Text="01" Height="30" Foreground="#FF141111" />
                <Label Content="日"    Width="20" Margin="10,0,0,0" HorizontalAlignment="Left"    FontSize="18" VerticalAlignment="Center" />
                <TextBlock Margin="10,5,0,0">移动记录日期为>=XXXX年4月1日，小于5月1日</TextBlock>
            </WrapPanel>
        </StackPanel>
        <StackPanel Grid.Row="2"  Grid.Column="0"  Grid.ColumnSpan="2">
            <!--Expander Header="明细" >
              <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions> 
                <StackPanel Grid.Column="0">
                    <TextBlock>品种信息</TextBlock>
                    <WrapPanel>
                        <Grid DataContext="{StaticResource vwCN_GMBALANCE}" HorizontalAlignment="Left" Name="grid2" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="60" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="品种" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                            <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" Name="gMGARTTextBox" Text="{Binding Path=GMGART, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="80" />
                        </Grid>
                        <Grid DataContext="{StaticResource vwCN_GMBALANCE}" HorizontalAlignment="Left" Name="grid1" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="版本" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                            <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" Name="gMVARTextBox"
                             Text="{Binding Path=GMVAR, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="20" />
                        </Grid>
                        <Grid DataContext="{StaticResource vwCN_GMBALANCE}" HorizontalAlignment="Left" Name="gmcolor" VerticalAlignment="Top">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="60" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Label Content="色号" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                            <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3"
                                     Name="gMGCOLORTextBox" Text="{Binding Path=GMGCOLOR, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="60" />
                        </Grid> 
                    </WrapPanel>
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" HorizontalAlignment="Left" Name="grid3" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="批:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" Name="gMPARTIETextBox" Text="{Binding Path=GMPARTIE, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                    </Grid>
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" HorizontalAlignment="Left" Name="grid4" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label Content="批号" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                    <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" Name="gMBATCHTextBox" Text="{Binding Path=GMBATCH, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                </Grid>
                </StackPanel>
                <StackPanel Grid.Column="1">
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" HorizontalAlignment="Left" Name="grid5" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="期初数量" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" Name="gMSTARTQTYTextBox"
                                 Text="{Binding Path=GMSTARTQTY,  Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="60" />
                    </Grid>
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" HorizontalAlignment="Left" Name="grid6" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="期末数量" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" 
                                 Name="gMENDQTYTextBox" Text="{Binding Path=GMENDQTY,  Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                    </Grid>
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="1" HorizontalAlignment="Left" Name="grid7" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="采购入库" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" Name="gMEKINTextBox" 
                                 Text="{Binding Path=GMEKIN, Mode=TwoWay, ValidatesOnExceptions=true, 
                            NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                    </Grid>
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="1" HorizontalAlignment="Left" Name="grid8" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="其他入库" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3"
                                 Name="gMELSEINTextBox" Text="{Binding Path=GMELSEIN, 
                            Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                    </Grid>
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="1" HorizontalAlignment="Left" Name="grid16" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="外协入库" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" 
                                 Name="gMEXPINTextBox" Text="{Binding Path=GMEXPIN, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                    </Grid>
                </StackPanel>
                <StackPanel Grid.Column="2">
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="2" HorizontalAlignment="Left" Margin="0" Name="grid9" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="生产领料" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3"
                                 Name="gMABOUTTextBox" Text="{Binding Path=GMABOUT, 
                            Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                    </Grid>
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="2" HorizontalAlignment="Left"  Name="grid10" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="摇绞用纱" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" 
                                 Name="gSYJOUTTextBox" Text="{Binding Path=GSYJOUT,  Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                    </Grid>
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="2" HorizontalAlignment="Left"   Name="grid11" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="外发出库" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left"
                                 Margin="3" Name="gSEXPROUTTextBox" 
                                 Text="{Binding Path=GSEXPROUT,  Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                    </Grid>
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="2" HorizontalAlignment="Left"   Name="grid12" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="染色用纱" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" 
                                 Name="gMEXDYEOUTTextBox" 
                                 Text="{Binding Path=GMEXDYEOUT,  Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                    </Grid>
                    <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="2" HorizontalAlignment="Left"   Name="grid13" VerticalAlignment="Top">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Label Content="采购退货" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3"
                                 Name="gMEKOUTTextBox" 
                                 Text="{Binding Path=GMEKOUT,  Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                    </Grid>
                </StackPanel>
                <StackPanel Grid.Column="3">
                <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="1" HorizontalAlignment="Left"  Name="grid17" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label Content="生产纱线" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                    <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3"
                             Name="gMABYARNTextBox" 
                             Text="{Binding Path=GMABYARN,  Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                </Grid>
                <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="1" HorizontalAlignment="Left"   Name="grid18" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label Content="摇绞纱:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                    <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" 
                             Name="gMYJYARNTextBox" Text="{Binding Path=GMYJYARN,  Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                </Grid>
                <Grid DataContext="{StaticResource vwCN_GMBALANCE}" Grid.Column="1" HorizontalAlignment="Left"  Name="grid19" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="60" />
                            <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label Content="染色纱" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                    <TextBox Grid.Column="1" Grid.Row="0" Height="Auto" HorizontalAlignment="Left" Margin="3" 
                             Name="gMDYEDYARNTextBox" Text="{Binding Path=GMDYEDYARN,  Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
                </Grid>
                </StackPanel>
            </Grid>
            </Expander--> 
                <fd:FilteringDataGrid AutoGenerateColumns="False" 
                          EnableRowVirtualization="True" 
                          Height="Auto" 
                          MaxHeight="700"
                          VerticalScrollBarVisibility="Auto"
                          HorizontalScrollBarVisibility="Auto"
                          ItemsSource="{Binding Source={StaticResource vwCN_GMBALANCE}}" 
                          Name="cN_GMBALANCEDataGrid" 
                          RowDetailsVisibilityMode="VisibleWhenSelected" 
                          Width="{Binding ElementName=main, Path=Width}">
                    <DataGrid.Columns>
                    <!--GMMANDANT,GMJJJJ ,GMMM ,GMTT ,GMLO ,GMLB ,GMGART ,GMGVAR ,GMGDES ,GMGCOLOR ,GMGCDES,
                        GMPARTIE ,GMBATCH,GMSPPART ,GMFBPART ,GMZWART,GMSTARTQTY ,GMPOIN ,GMMUIN ,GMPDIN ,GMSPIN ,
                        GMD7IN ,GMESIN ,GMRDOUT,GMCLOUT,GMRSOUT,GMADJIN,GMREIN ,GMORIN ,GMSTOUT,GMTOOUT,GMCSOUT,
                        GMCRIN ,GMOSOUT,GMPDOUT,GMSPOUT,GMOCOUT,GMOSIN ,GMOROUT,GMSTARTDAT ,GMREMARK -->
                        <!--DataGridTextColumn x:Name="gMJJJJColumn" Binding="{Binding Path=GMJJJJ}" Header="年" Visibility="Hidden"  Width="SizeToCells" /-->
                        <!--DataGridTextColumn x:Name="gMMMColumn" Binding="{Binding Path=GMMM}" Header="月" Visibility="Hidden"  Width="SizeToHeader" /-->
                        <!--DataGridTextColumn x:Name="gMTTColumn" Binding="{Binding Path=GMTT}" Header="日" Visibility="Hidden" Width="SizeToHeader" /-->
                    <DataGridTextColumn x:Name="gMLOColumn" Binding="{Binding Path=GMLO}" Header="库" Visibility="Visible" Width="SizeToHeader" />
                        <!--DataGridTextColumn x:Name="gMLBColumn" Binding="{Binding Path=GMLB}" Header="区" Visibility="Hidden" Width="SizeToHeader" /-->
                    <DataGridTextColumn x:Name="gMGDESColumn" Binding="{Binding Path=GMGDES}" Header="纱线名称" Visibility="Visible" MinWidth="100" Width="150" />
                    <DataGridTextColumn x:Name="gMGARTColumn" Binding="{Binding Path=GMGART}" Header="品种" Visibility="Visible" MinWidth="100" Width="SizeToCells" />
                    <DataGridTextColumn x:Name="gMGVARColumn" Binding="{Binding Path=GMGVAR}" Header="var" Visibility="Visible" MinWidth="50" Width="SizeToCells" />
                    <DataGridTextColumn x:Name="gMGCOLORColumn" Binding="{Binding Path=GMGCOLOR}" Header="色号" Visibility="Visible" MinWidth="50" Width="SizeToCells" />
                    <DataGridTextColumn x:Name="gMGCDESColumn" Binding="{Binding Path=GMGCDES}" Header="颜色" Visibility="Visible" MinWidth="50" Width="SizeToCells" />
                    <DataGridTextColumn x:Name="gMPARTIEColumn" Binding="{Binding Path=GMPARTIE}" Header="LOT" Visibility="Visible" MinWidth="70" Width="SizeToCells" />
                        <!--DataGridTextColumn x:Name="gMBATCHColumn" Binding="{Binding Path=GMBATCH}" Header="LOT" Visibility="Hidden" MinWidth="100" Width="SizeToCells" /-->
                    <DataGridTextColumn x:Name="gMSTARTQTYColumn" Binding="{Binding Path=GMSTARTQTY}" Header="期初库存" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMPOINColumn" Binding="{Binding Path=GMPOIN}" Header="采购入库" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMMUINColumn" Binding="{Binding Path=GMMUIN}" Header="手工入库" Visibility="Visible"  Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMPDINColumn" Binding="{Binding Path=GMPDIN}" Header="摇绞入库" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMSPINColumn" Binding="{Binding Path=GMSPIN}" Header="生产入库" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMD7INColumn" Binding="{Binding Path=GMD7IN}" Header="染色入库" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMESINColumn" Binding="{Binding Path=GMESIN}" Header="外发加工入库" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMRDOUTColumn" Binding="{Binding Path=GMRDOUT}" Header="研发消耗" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMCLOUTColumn" Binding="{Binding Path=GMCLOUT}" Header="色卡消耗" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMRSOUTColumn" Binding="{Binding Path=GMRSOUT}" Header="采购退货" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMADJINColumn" Binding="{Binding Path=GMADJIN}" Header="调整" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMREINColumn" Binding="{Binding Path=GMREIN}" Header="生产退仓" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMORINColumn" Binding="{Binding Path=GMORIN}" Header="外加工退仓" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMSTOUTColumn" Binding="{Binding Path=GMSTOUT}" Header="转生产车间" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMTOOUTColumn" Binding="{Binding Path=GMTOOUT}" Header="转外加工厂" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMCSOUTColumn" Binding="{Binding Path=GMCSOUT}" Header="销售出货" Visibility="Visible"  Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMCRINColumn" Binding="{Binding Path=GMCRIN}" Header="客户退货" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMOSOUTColumn" Binding="{Binding Path=GMOSOUT}" Header="委外发货" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMPDOUTColumn" Binding="{Binding Path=GMPDOUT}" Header="摇绞领料" Visibility="Visible" Width="SizeToHeader" />
                    <DataGridTextColumn x:Name="gMSPOUTColumn" Binding="{Binding Path=GMSPOUT}" Header="生产领料" Visibility="Visible" Width="SizeToHeader" />
                        <!--DataGridTextColumn x:Name="gMOCOUTColumn" Binding="{Binding Path=GMOCOUT}" Header="委外收回" Visibility="Hidden" Width="SizeToHeader" /-->
                        <!--DataGridTextColumn x:Name="gMOSINColumn" Binding="{Binding Path=GMOSIN}" Header="外加工接收原料" Visibility="Hidden" Width="SizeToHeader" /-->
                        <!--DataGridTextColumn x:Name="gMOROUTColumn" Binding="{Binding Path=GMOROUT}" Header="外加工退纱" Visibility="Hidden" Width="SizeToHeader" /-->
                    <DataGridTextColumn x:Name="gMENDQTYColumn" Binding="{Binding Path=GMENDQTY}" Header="期末库存" Visibility="Visible" Width="SizeToHeader" />
                        <!--DataGridTextColumn x:Name="gMELSEINColumn" Binding="{Binding Path=GMELSEIN}" Header="其它入库" Visibility="Hidden" Width="SizeToHeader" /-->
                        <!--DataGridTextColumn x:Name="gMELSEOUTColumn" Binding="{Binding Path=GMELSEOUT}" Header="其它出库" Visibility="Hidden" Width="SizeToHeader" /-->
                    </DataGrid.Columns>
            </fd:FilteringDataGrid>
          </StackPanel> 
    </Grid>
</local:DocumentBase>
